<?php

class Inicio extends CI_Controller{
private $data;
	public function __construct(){
		parent::__construct();
		$this->data['url1']=site_url(array("persona","persona"));
		$this->data['url2']=site_url(array("partido","partido"));
		$this->data['url3']=site_url(array("candidato","candidato"));
		$this->data['url4']=site_url(array("registroVotos","registroVotos"));
		$this->data['url5']=site_url(array("reportes","reporteVotacionesPorDepartamento"));
		$this->data['url6']=site_url(array("reportes","reporteVotosRegistrados"));
		$this->data['url7']=site_url(array("boletin","registroboletin"));
		$this->data['url99']=site_url(array("login","login"));
		$this->data['id_menu']=0;
		session_start();
		if(!isset($_SESSION['VALID']) || $_SESSION['VALID'] != 1){
			redirect('login/login');
		}else{
			$this->data['menu']=$_SESSION['ACCESOS'];
		}
		
	}
	
	public function index(){
		$this->load->view("cabecera");
		$this->load->view("menu",$this->data);
		$this->load->view("inicio/inicio",$this->data);
	}
}